<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/4/17
 * Time: 11:37
 */

namespace backend\controllers;


use common\controllers\BaseController;

class PublicController extends BaseController
{
    public function actionConst()
    {
        header('Content-type:application/javascript;charset=utf-8');
        echo '
        window.IMG_UPLOAD_URL = "'.IMG_UPLOAD_URL.'";
        window.IMG_HOST = "'.IMG_HOST.'";
        window.UEDITOR_HOME_URL = "/public/js/modules/ueditor/";
        ';
        exit;
    }
}